/*
 * Antichat Web Tool
 *
 * [C] Great, Antichat.
 *
 * http://antichat.ru
 *
 *
 * Plugin sample
 */

#include "..\webtool.h"

struct _MAIN_WEBTOOL_INSTANCE * pmwi;

BOOL CALLBACK AwtPluginInit( struct _MAIN_WEBTOOL_INSTANCE * _pmwi )
{
	pmwi = _pmwi;

	return true;
}

INT CALLBACK AwtPluginDlgProc ( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	if( msg == WM_INITDIALOG )
	{
		char title[1024];
		GetWindowText( hWnd, title, sizeof(title) );
		lstrcat( title, "        [awt_sample plugin]" );
		SetWindowText( hWnd, title );
	}

	return 0;
}

INT APIENTRY PluginMain( HANDLE, DWORD, LPVOID )
{
	return TRUE;
}